package appinfo.service;


import appinfo.mapper.DataDictionaryMapper;
import appinfo.pojo.DataDictionary;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author lzfei
 **/
@Service
public class DataDictionaryServiceImpl implements DataDictionaryService {
    @Resource
    private DataDictionaryMapper dataDictionaryMapper;
    @Override
    public List<DataDictionary> findStatusList(String typeCode) {
        return dataDictionaryMapper.findDataDictionaryListByTypeCode(typeCode);
    }

    @Override
    public List<DataDictionary> findFlatFormList(String typeCode) {
        return dataDictionaryMapper.findDataDictionaryListByTypeCode(typeCode);
    }

    @Override
    public List<DataDictionary> getDictionaryByTypeCode(String tcode) {
        return dataDictionaryMapper.getDictionaryByTypeCode(tcode);
    }

}
